export default defineAppConfig({
  pages: [
    "pages/home/index",
    "pages/mine/index",
    "pages/study-total/index",
    "pages/improveUserInfo/index",
    "pages/zixun-detail/index",
    "pages/zixun-list/index",
    "pages/text-record/index",
    "pages/text-record-detail/index",
    "pages/text-record-detail-error/index",
    "pages/apply/index",
    "pages/apply-detail/index",
    "pages/training-list/index",
    "pages/audit-list/index",
    "pages/apply-switch/index",
    "pages/danger-list/index",
    "pages/danger-detail/index",
    "pages/pdf-view/index",
    "pages/voice/index",
  ],
  subPackages:[
    {
      root: 'packageA',
      pages:[
        "pages/test-type/index",
        "pages/test/index",
        "pages/test-result/index",
        "pages/video-total/index",
        "pages/total-all/index",
        "pages/video-total-page/index",
        "pages/mine-info/index",
      ]
    },
    {
      root: 'packageB',
      pages:[
        "pages/study-total-share/index",
        "pages/editUserInfo/index",
        "pages/messageSetting/index",
        "pages/gongzhong/index",
        "pages/report-add/index",
        "pages/video-list/index",
      ]
    }
  ],
  requiredPrivateInfos:["getLocation","chooseLocation"],
  permission:{
    "scope.userLocation": {
      "desc": "你的位置信息将用于小程序位置接口的效果展示" // 高速公路行驶持续后台定位
    }
  },
  tabBar: {
    custom: false,
    color: "#757575",
    selectedColor: "#415FFF",
    backgroundColor: "#FFFFFF",
    list: [
      {
        pagePath: "pages/home/index",
        text: "首页",
        iconPath: "./assets/images/icon_home_common_gray.png",
        selectedIconPath: "./assets/images/icon_home_common_blue.png",
      },
      {
        pagePath: "pages/study-total/index",
        text: "统计",
        iconPath: "./assets/images/icon_total.png",
        selectedIconPath: "./assets/images/icon_total_select.png",
      },
      {
        pagePath: "pages/mine/index",
        text: "我的",
        iconPath: "./assets/images/icon_user_common_gray.png",
        selectedIconPath: "./assets/images/icon_user_common_blue.png",
      },
    ],
  },
  window: {
    backgroundTextStyle: "light",
    navigationBarBackgroundColor: "#fff",
    navigationBarTitleText: "WeChat",
    navigationBarTextStyle: "black",
  },
  lazyCodeLoading: "requiredComponents",
  componentFramework: "glass-easel",
  rendererOptions: {
    skyline: {
      defaultDisplayBlock:true,
      disableABTest:true,
    }
  },
});
